package com.hs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hs
 * @since 2019-05-01
 */
@ApiModel(value="SysLog对象", description="")
public class SysLog extends Model<SysLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志ID")
    @TableId(value = "lid", type = IdType.UUID)
    private String lid;

    @ApiModelProperty(value = "操作用户ID")
    private String userId;

    @ApiModelProperty(value = "操作信息")
    private String operation;

    @ApiModelProperty(value = "操作方法")
    private String method;

    @ApiModelProperty(value = "操作参数")
    private String params;

    @ApiModelProperty(value = "操作IP")
    private String ip;

    @ApiModelProperty(value = "操作时间")
    private LocalDateTime operationDate;

    public String getLid() {
        return lid;
    }

    public void setLid(String lid) {
        this.lid = lid;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public LocalDateTime getOperationDate() {
        return operationDate;
    }

    public void setOperationDate(LocalDateTime operationDate) {
        this.operationDate = operationDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.lid;
    }

    @Override
    public String toString() {
        return "SysLog{" +
        "lid=" + lid +
        ", userId=" + userId +
        ", operation=" + operation +
        ", method=" + method +
        ", params=" + params +
        ", ip=" + ip +
        ", operationDate=" + operationDate +
        "}";
    }
}
